package org.example.modules.service;

import org.apache.dubbo.config.annotation.DubboReference;
import org.example.modules.entity.User;
import org.springframework.stereotype.Service;

/**
 * @author shenguangyang
 */
@Service
public class OrderService {
//    @DubboReference(protocol = "dubbo")
    @DubboReference
    private UserService userService;

    public String createOrder() {
        User user = userService.getUser("1");
        return "create ok, userName: " + user.getUsername();
    }
}
